#include <stdio.h>
#include <wiringPi.h>
#include <wiringPiI2C.h>
int main (void)
{ // 注释
    wiringPiSetup () ;
    int fd = wiringPiI2CSetup (0x50);
    printf("fd = %d\n",fd);
    int w_data = wiringPiI2CWriteReg8(fd,0x01,0x21);
    printf("w_data = %d\n",w_data);
    delay(1000);
    int r_data = wiringPiI2CReadReg8(fd,0x01);
    printf("r_data = %d\n",r_data);
	return 0 ;
}
